/**
 * 
 */
package com.totobox.apps.common;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.widget.TextView;

import com.totobox.apps.R;

/**
 * @author ytslove
 * 
 */
public class AboutCustomDialog extends Dialog {

	private TextView txt_msg;
	private Activity atv;

	private Handler mHandler = null;
	private InitThread thread = null;

	public AboutCustomDialog(Activity atv) {
		super(atv);
		this.atv = atv;
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		this.setContentView(R.layout.dialog_about_view);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);

		txt_msg = (TextView) findViewById(R.id.txt_msg);
		txt_msg.setText("\n\nVersion : 1.0 \n\n홈페이지 : www.totofun.com \n\n이용문의 : 032-747-0778");

		thread = new InitThread();
		mHandler = new Handler();
		mHandler.postDelayed(thread, 2000);

	}

	class InitThread implements Runnable {

		public void run() {
			dismiss();

		}
	}
}
